#ifndef TASK_CNTLCENTER_H__
#define TASK_CNTLCENTER_H__

#include "los_task.h"

extern unsigned int task_cntlCenter_id;
extern TSK_INIT_PARAM_S task_cntlCenter_handler;

#define MAX_NAME_SIZE       128

typedef enum
{
    CNTL_MSG_SOURCE_FROM_MQTT,
    CNTL_MSG_SOURCE_FROM_AUTOMODE
}cntl_msg_source_t;

typedef enum
{
    CNTL_MSG_TYPE_NAME,
    CNTL_MSG_TYPE_ID,
    CNTL_MSG_TYPE_CLOSE_ALL
}cntl_msg_type_t;

//那边申请空间，这边要自己释放
typedef struct
{
    cntl_msg_source_t source;   //来源
    cntl_msg_type_t type;

    int id;
    char* name;
    // int name_size;  //包括\0
    void* param;
}cntl_msg_t;

// intcntlCenter_send_cntl_msg_by_id(int id, )

#endif
